#ifndef _SHELL_SERVERINFO_BEAN_H_
#define _SHELL_SERVERINFO_BEAN_H_

#include "Beans.h"
#include "Message.h"
using namespace std;
class ServerInfo : public Bean
{
	public:
	ServerInfo();
	~ServerInfo();
	void reset();
	ServerInfo* clone();
	//服务器id
	int32 serverId;
	//服务器名称
	string serverName;
	//端口
	int32 port;
	//ip
	string ip;
	
	bool read_from(ByteBuf& buf);
	bool write_to(ByteBuf& buf);
};

#endif
